package com.cecsmsserve.service;

import com.cecsmsserve.entity.ServiceOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cecsmsserve.util.result.CommonResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 王郝浠
 * @since 2024-04-17
 */
public interface IServiceOrderService extends IService<ServiceOrder> {

    CommonResult selectAll();

    CommonResult selectAllByPage(int current, int size);

    CommonResult selectServiceByPage(int current, int size);

    CommonResult selectHealthByPage(int current, int size);

    CommonResult selectByUId(int uId);

    CommonResult selectByuIdByState(int uId, int state);

    CommonResult selectByState(int orderState);

    CommonResult insert(ServiceOrder serviceOrder);

    CommonResult update(ServiceOrder serviceOrder);

    CommonResult countRate();
}
